<?php

use yii\db\Schema;
use yii\db\Migration;

class m160118_090623_update_creative_mobile_fields extends Migration
{
    public function up()
    {
        $this->addColumn('{{%creative}}', 'title', 'text comment "创意 title " after height');
        $this->addColumn('{{%creative}}', 'txt', 'text comment "创意 content " after title');
    }

    public function down()
    {
        $this->dropColumn('{{%creative}}', 'title');
        return $this->dropColumn('{{%creative}}', 'txt');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
